<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
    <head>
        <?php
            echo $this->headMeta()->appendHttpEquiv('Content-Type', 'text/html; charset=utf-8');

            echo $this->headLink()->appendStylesheet('/ext/resources/css/ext-all.css')
                                  ->appendStylesheet('/css/layout.css');

            echo $this->headScript()->appendFile('/ext/adapter/ext/ext-base.js')
                                    ->appendFile('/ext/ext-all.js')
                                    ->appendFile('/js/global_layout.js');
        ?>
        <style type="text/css" >
            .error_msgbox{

                text-align: center;
                line-height: 20px;
                vertical-align: middle;
            }
        </style>
    </head>
    <body>
        <table class="layout">
            <tr><td id="layout_header"></td></tr>
            <tr><td id="layout_content">

                <script type="text/javascript">
                    Ext.onReady(function(){

                        Ext.Msg.show({
                            cls     : 'error_msgbox',
                            title   : 'Manejador de errores',
                            style   : {padding:'10px 10px 10px 10px'},
                            msg     : '<?php echo $this->message; ?>',
                            closable: false,
                            icon    : Ext.Msg.ERROR,
                            buttons : Ext.Msg.OK,
                            fn      : function(){
                                window.location = '<?php echo $this->location; ?>';
                            }
                        });
                        
                    });
                </script>

            </td></tr>
            <tr><td id="layout_footer"></td></tr>
        </table>
    </body>
</html>